package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("restaurants")
public class Restaurant {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;

    // 确保字段名匹配或使用注解映射
    @TableField("user_id")
    private Integer userId;
}